package cn.ll.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Orderlist entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "orderlist", catalog = "lldb")
public class Orderlist implements java.io.Serializable {

	// Fields

	private String orderId;
	private String orderName;
	private Date orderDate;
	private String orderIcon;

	// Constructors

	/** default constructor */
	public Orderlist() {
	}

	/** minimal constructor */
	public Orderlist(String orderId) {
		this.orderId = orderId;
	}

	/** full constructor */
	public Orderlist(String orderId, String orderName, Date orderDate,
			String orderIcon) {
		this.orderId = orderId;
		this.orderName = orderName;
		this.orderDate = orderDate;
		this.orderIcon = orderIcon;
	}

	// Property accessors
	@Id
	@Column(name = "OrderId", unique = true, nullable = false, length = 32)
	public String getOrderId() {
		return this.orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	@Column(name = "OrderName", length = 20)
	public String getOrderName() {
		return this.orderName;
	}

	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "OrderDate", length = 0)
	public Date getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	@Column(name = "OrderIcon")
	public String getOrderIcon() {
		return this.orderIcon;
	}

	public void setOrderIcon(String orderIcon) {
		this.orderIcon = orderIcon;
	}

}